<?php
/**
 * A test custom view renderer.
 */
class View_Renderer_Custom extends View_Renderer {
    /**
     * Render the text.
     * @param string $text
     * @return string
     */
    public function render($text) {
        parent::render($text);
        $this->text = str_replace('</body>', '<p>Custom renderer. This is how renderers for other engines (i.e. Smarty) are made.</p></body>', $this->text);
        return $this->text;
    }
}
?>